package com.tjhzzx.danfossNiagaraCore.model.energy;



import com.tjhzzx.danfossNiagaraCore.enums.BPeriodType;

import javax.baja.naming.BOrd;
import javax.baja.sys.BComponent;
import javax.baja.sys.Property;
import javax.baja.sys.Sys;
import javax.baja.sys.Type;

/**
 * @author Luc
 * @version 1.0
 * @date 2023-01-18 15:02
 */
public class BPointBinding extends BComponent {

    public static final Property periodType = newProperty(0, BPeriodType.month, null);
    public BPeriodType getPeriodType() {
        return (BPeriodType) get(periodType);
    }
    public void setPeriodType(BPeriodType v) {
        set(periodType, v, null);
    }

    public static final Property originOrd = newProperty(0, BOrd.DEFAULT, null);
    public BOrd getOriginOrd() {
        return (BOrd) get(originOrd);
    }
    public void setOriginOrd(BOrd v) {
        set(originOrd, v, null);
    }

    public static final Property targetOrd = newProperty(0, BOrd.DEFAULT, null);
    public BOrd getTargetOrd() {
        return (BOrd) get(targetOrd);
    }
    public void setTargetOrd(BOrd v) {
        set(targetOrd, v, null);
    }

    public static final Property historyOrd = newProperty(0, BOrd.DEFAULT, null);
    public BOrd getHistoryOrd() {
        return (BOrd) get(historyOrd);
    }
    public void setHistoryOrd(BOrd v) {
        set(historyOrd, v, null);
    }

    @Override
    public Type getType() {
        return TYPE;
    }

    public static final Type TYPE = Sys.loadType(BPointBinding.class);
}
